/* Layout */
import Layout from '@/layout'

export default [{
    path: '/check_results',
    component: Layout,
    permission: 'check_results',
    children: [{
      path: '',
      component: () => import('@/views/Check_results/index.vue'),
      meta: {
        title: '查询课程成绩',
        icon: 'el-icon-office-building'
      }
    }]
  },
  {
    path: '/inquiry_taught_course',
    component: Layout,
    permission: 'inquiry_taught_course',
    children: [{
      path: '',
      component: () => import('@/views/Inquiry_taught_course/index.vue'),
      meta: {
        title: '查询讲授课程',
        icon: 'el-icon-s-order'
      }
    }]
  },
  {
    path: '/score_management',
    component: Layout,
    permission: 'score_management',
    children: [{
      path: '',
      component: () => import('@/views/Score_management/index.vue'),
      meta: {
        title: '成绩管理',
        icon: 'el-icon-office-building'
      }
    }]
  },
  {
    path: '/score_review',
    component: Layout,
    permission: 'score_review',
    children: [{
      path: '',
      component: () => import('@/views/Score_review/index.vue'),
      meta: {
        title: '成绩审核及编辑',
        icon: 'el-icon-office-building'
      } 
    }]
  },
  {
    path: '/data',
    component: Layout,
    permission: 'data',
    meta: {
      title: '数据维护',
      icon: 'el-icon-setting'
    },
    children: [{
      path: 'college',
      permission: 'data:college',
      component: () => import('@/views/Data/College/index.vue'),
      meta: {
        title: '学院管理'
      }
    }, {
      path: 'specialty',
      permission: 'data:specialty',
      component: () => import('@/views/Data/Specialty/index.vue'),
      meta: {
        title: '专业管理'
      }
    }, {
      path: 'grade',
      permission: 'data:grade',
      component: () => import('@/views/Data/Grade/index.vue'),
      meta: {
        title: '年级管理'
      }
    }, {
      path: 'user',
      permission: 'data:user',
      component: () => import('@/views/Data/User/index.vue'),
      meta: {
        title: '用户管理'
      }
    },{
      path: 'class',
      permission: 'data:class',
      component: () => import('@/views/Data/Class/index.vue'),
      meta: {
        title: '班级管理'
      }
    },
    {
      path: 'student',
      permission: 'data:student',
      component: () => import('@/views/Data/Student/index.vue'),
      meta: {
        title: '学生管理'
      }
    },
    {
      path: 'term',
      permission: 'data:term',
      component: () => import('@/views/Data/Term/index.vue'),
      meta: {
        title: '学期管理'
      }
    },
    {
      path: 'course',
      permission: 'data:course',
      component: () => import('@/views/Data/Course/index.vue'),
      meta: {
        title: '课程管理'
      }
    },{
      path: 'login_records',
      permission: 'data:login_records',
      component: () => import('@/views/Data/Login_records/index.vue'),
      meta: {
        title: '登录记录管理'
      }
    }]
  },
]